package com.fastwire.carriere.common.util;

import java.util.Comparator;

import com.fastwire.carriere.serviceorder.entity.ServiceOrderActivity;

public class ServiceOrderUtil {

	public static class ActivityComparator implements
			Comparator<ServiceOrderActivity> {

		@Override
		public int compare(ServiceOrderActivity activity1,
				ServiceOrderActivity activity2) {
			Integer activityNo1 = Integer.valueOf(activity1.getActivityNo());
			Integer activityNo2 = Integer.valueOf(activity2.getActivityNo());

			return activityNo1.compareTo(activityNo2);
		}

	}

}
